<?php
include  __DIR__.'/common/common.php';//添加
$uid=(int)($_POST['uid']);
$name=addslashes($_POST['name']);
$logo=addslashes($_POST['logo']);
$describe=addslashes($_POST['describe']);
$supplier=addslashes($_POST['supplier']);
$sql="UPDATE brand SET `name`='$name',`logo`='$logo',`describe`='$describe',`supplier`='$supplier' WHERE `uid`=$uid";
$bool=mysqli_query($mysql,$sql);
if ($bool)
{
    echo json_encode(array(
        '0'=>'ok',
        'uid'=>$index
    ));
}else{
    echo 'no';
}